////////

#if 1
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>

#include "que_cpu_dis_amp.h"
//#include "app.h"



//const int CRtcMaxSIZE=5;
#define defMaxCpuDisAmp  defFrameCpuDisAmp*4  // 184
//static const  uint16_t CRtcMaxSIZE=5;
//uint16_t const CRtcMaxSIZE=5;
//static const uint16_t CRtcMaxSIZE=5;
static defCpuDisAmp cpu_dis_amp_data[defMaxCpuDisAmp];

static const defQueAttr m_cpu_dis_amp_attr=
{
	.type = enmTypeMcuCpuDisAmp,
	//.nsize=2, //sizeof(uint16_t)
	//.size=sizeof(RtcData)/sizeof(uint16_t)+1,
	.countMax=defMaxCpuDisAmp, //+1,
	.pData=&cpu_dis_amp_data,
};

static defTypeQue m_cpu_dis_amp_que=
{
	.pattr=(defQueAttr*)(&m_cpu_dis_amp_attr),
    //.count=CRtcMaxSIZE,
    .front=-1,
    .rear=-1,
};

#if 0
defTypeQue* get_que_pt_cpu_dis_amp(void)
{
    return &m_cpu_dis_amp_que;
}
#endif

void cpu_dis_amp_init( void )
{
	get_pt_que_func()->init(&m_cpu_dis_amp_que );
}

bool cpu_dis_amp_push_back( defCpuDisAmp* dis_amp )
{
	return get_pt_que_func()->push_back(&m_cpu_dis_amp_que, dis_amp );
}
bool cpu_dis_amp_pop_front( defCpuDisAmp* dis_amp )
{
	return get_pt_que_func()->pop_front(&m_cpu_dis_amp_que, dis_amp );
}
bool cpu_dis_amp_get_index( int index, defCpuDisAmp* dis_amp )
{
	return get_pt_que_func()->get_index( &m_cpu_dis_amp_que, index, dis_amp );
}
int cpu_dis_amp_length( void )
{
	return get_pt_que_func()->length(&m_cpu_dis_amp_que );
}


void prt_que_pt_cpu_dis_amp(void)
{
	for( int i=0; i<defMaxCpuDisAmp; i++ )
	{
		
		//printf("%s,%s,%d,0x%08X\r\n", __FILE__,__func__,__LINE__, RtcData[i] );
	}
}




#endif



